home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Headers / misckit / MiscMergeTemplate.h < prev    next >
Encoding:
Text File  |  1995-07-08  |  1.2 KB  |  42 lines

  1. //
  2. //    MiscMergeTemplate.h -- a data container and parser for merge templates
  3. //        Written by Don Yacktman Copyright (c) 1995 by Don Yacktman.
  4. //                Version 1.0.  All rights reserved.
  5. //        This notice may not be removed from this source code.
  6. //
  7. //    This object is included in the MiscKit by permission from the author
  8. //    and its use is governed by the MiscKit license, found in the file
  9. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  10. //    for a list of all applicable permissions and restrictions.
  11. //    
  12.  
  13.  
  14. #import <appkit/appkit.h>
  15.  
  16. @interface MiscMergeTemplate : Object
  17. {
  18.     List *commands;
  19. }
  20.  
  21. + (char)startFieldDelimiter;
  22. + (char)endFieldDelimiter;
  23. + setFieldDelimitersStart:(char)aChar1 end:(char)aChar2;
  24. + getClassForCommand:(MiscString *)aCommand;
  25.  
  26. /*" Initializing a MiscTemplate "*/
  27. - init; // designated initializer
  28. - initWithString:(MiscString *)aString;
  29. - initFromFile:(MiscFile *)aFile;
  30. - initFromFileNamed:(MiscString *)aFileName;
  31.  
  32. /*" Loading the template "*/
  33. - parseFromString:(MiscString *)aString;
  34. - parseFromFile:(MiscFile *)aFile;
  35. - parseFromFileNamed:(MiscString *)aFileName;
  36.  
  37. /*" Accessing parsed template "*/
  38. - commands;
  39. - commandAt:(unsigned)index;
  40.  
  41. @end
  42.